import * as dateFns from 'date-fns';

export const environment = {
	SERVER_TITLE: '配派工',
	SERVER_SUFFIX: '配派工',
	SERVER_URL: `/api/`,
	// SERVER_URL: `/api-prod/`,
	OSS_URL: 'blade-system/business-oss/',
	FILE_PREVIEW_URL: 'http://10.163.200.140:10499/',
	FINE_REPORT_URL: 'http://10.10.21.38:8080/webroot/decision/view/report?viewlet=',
	production: false,
	useHash: true,
	hmr: false,
	dict: {
		SHIP_LAND: 'ship_land',
		TALLY_TYPE: 'tally_type',
		TIME_SPACE: 'time_space',
		CHECK_TYPE: 'check_type',
		MACHINE_KIND: 'machine_kind',
		SHIPPING_ORDER_STATUS: 'shipping_order_status',
		HOLD: 'hold',
		ie: [
			{
				dictKey: 'I',
				dictValue: '进口'
			},
			{
				dictKey: 'E',
				dictValue: '出口'
			}
		],
		yesOrNo: [
			{
				dictValue: '是',
				dictKey: 1
			},
			{
				dictValue: '否',
				dictKey: 0
			}
		],
		yesOrNoStr: [
			{
				dictValue: '是',
				dictKey: 'Y'
			},
			{
				dictValue: '否',
				dictKey: 'N'
			}
		],
		loadClear: [
			{
				dictValue: '是',
				dictKey: 'Y'
			},
			{
				dictValue: '破头',
				dictKey: 'W'
			},
			{
				dictValue: '未开始',
				dictKey: 'N'
			}
		],
		isFinish:  [
			{
				dictValue: '未结',
				dictKey: 'N'
			},
			{
				dictValue: '待结',
				dictKey: 'W'
			},
			{
				dictValue: '完结',
				dictKey: 'Y'
			}
		],
		shipStatTallyTypeList: [
			{
				dictKey: 'IN',
				dictValue: '入库'
			},
			{
				dictKey: 'OUT',
				dictValue: '出库'
			},
			{
				dictKey: 'VARIOUS_OUT',
				dictValue: '杂作业前'
			},
			{
				dictKey: 'VARIOUS_IN',
				dictValue: '杂作业后'
			},
			{
				dictKey: 'TRANSFER_OUT',
				dictValue: '转出'
			},
			{
				dictKey: 'TRANSFER_IN',
				dictValue: '转入'
			}
		]
	},
	dateRanges: {
		'本周': [dateFns.addDays(dateFns.startOfWeek(new Date()), 1), dateFns.addDays(dateFns.endOfWeek(new Date()),1)],
		'本月': [dateFns.startOfMonth(new Date()), dateFns.endOfMonth(new Date())],
		'本年': [dateFns.startOfYear(new Date()), dateFns.endOfYear(new Date())],
		'上月': [dateFns.startOfMonth(dateFns.subMonths(new Date(), 1)), dateFns.endOfMonth(dateFns.subMonths(new Date(), 1))],
		'今天': [new Date(), new Date()],
	},
	transport: 'transport',
	tally: 'tally',
	subsystem: {
		code: 'tally',
		id: '1794927772704047105',
		name: '手持理货'
	},
	nzPageSizeOptions: [10, 20, 30, 40, 50]
};
